package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.dto.PageDTO;
import com.leyou.item.dto.BrandDTO;
import com.leyou.item.pojo.Brand;

import java.util.List;

public interface BrandService extends IService<Brand> {

    PageDTO findPage(String key, Integer page, Integer rows);

    boolean saveBrand(BrandDTO brandDto);

    boolean deleteBrandById(Long id);

    Boolean updateBrand(BrandDTO brandDto);

    List<BrandDTO> queryBrandListByIds(List<Long> ids);

    BrandDTO queryBrandById(Long id);

    List<BrandDTO> queryBrandByCategoryId(Long id);
}
